<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost" />
<title>test_submit_journal</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">test_submit_journal</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>http://localhost/submit?doctype=DEMOJRN</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>p_un</td>
	<td>jekyll</td>
</tr>
<tr>
	<td>type</td>
	<td>p_pw</td>
	<td>j123ekyll</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>action</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>comboARTS</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value='Submit New Record']</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>You are not authorized to perform this action</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>http://localhost</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Submit</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextNotPresent</td>
	<td>Demo Journal Submission</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=logout</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=login here</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>p_un</td>
	<td>romeo</td>
</tr>
<tr>
	<td>type</td>
	<td>p_pw</td>
	<td>r123omeo</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>action</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Demo Journal Submission</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>comboARTS</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//input[@value='Submit New Record']</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>DEMOJRN_TYPE</td>
	<td>label=Offline</td>
</tr>
<tr>
	<td>type</td>
	<td>DEMOJRN_ORDER1</td>
	<td>1</td>
</tr>
<tr>
	<td>type</td>
	<td>DEMOJRN_ORDER2</td>
	<td>1</td>
</tr>
<tr>
	<td>type</td>
	<td>DEMOJRN_AU</td>
	<td>Author1, Firstname1<br />Author2, Firstname2</td>
</tr>
<tr>
	<td>type</td>
	<td>DEMOJRN_TITLEE</td>
	<td>This is a test title</td>
</tr>
<tr>
	<td>type</td>
	<td>DEMOJRN_TITLEF</td>
	<td>Ceci est un titre test</td>
</tr>
<!--Next two commands will fail when FCKeditor has not been installed-->
<tr>
	<td>click</td>
	<td>//td[@id='xToolbar']/table[2]/tbody/tr/td[2]/div/img</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//td[@id='xToolbar']/table[2]/tbody/tr/td[2]/div/img</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>endS</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=logout</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
